home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 55
/
MINAMI55.ISO
/
Varios
/
Juegos
/
03 - Red_Ninja.swf
/
scripts
/
DefineSprite_171
/
frame_1
/
DoAction.as
Wrap
Text File
|
2004-10-04
|
672b
|
25 lines
n = "0";
while(n < "10")
{
n += "1";
radius1 = getProperty("/map/p", _width) / "4";
radius2 = getProperty("/map/cit" add n, _width) / "4";
obj1_x = getProperty("/map/p", _X);
obj2_x = getProperty("/map/cit" add n, _X);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty("/map/p", _Y);
obj2_y = getProperty("/map/cit" add n, _Y);
delta_y = obj1_y - obj2_y;
if((radius1 + radius2) * (radius1 + radius2) >= delta_x * delta_x + delta_y * delta_y)
{
if(eval("/:busydiag") == "0")
{
tellTarget("/map/cit" add n)
{
gotoAndStop("check");
play();
}
}
}
}